package com.fjut.client.course;

import com.fjut.model.vod.Course;
import com.fjut.model.vod.Teacher;
import com.fjut.vo.vod.TeacherQueryVo;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "service-vod")
public interface CourseFeignClient {

    @ApiOperation("模糊查询课程名")
    @GetMapping("/fjut/vod/course/getClientCourseLike/{keyWord}")
    List<Course> getClientCourseLike(@PathVariable("keyWord") String keyWord);

    @ApiOperation("根据课程id查询课程")
    @GetMapping("/fjut/vod/course/getClientCourseWxById/{id}")
    Course getClientCourseWxById(@PathVariable("id") Long id);

    @ApiOperation("远程调用查询单个讲师信息")
    @GetMapping("/fjut/vod/teacher/getClientTeacherInfoById/{id}")
    Teacher getClientTeacherInfoById(@PathVariable("id") Long id);
}
